import instance from '../utils/request'
import { getToken } from '../utils/token'

// 抽取api 用户登录
const getUserInfo = () => {
  return instance({
    url: '/v1_0/user/profile',
    method: 'get',
    headers: {
      Authorization: `Bearer ${getToken().token}`
    }
  })
}

// 暴露出去
export { getUserInfo }
